package com.example.pre.exception;

/**
 * 
 * @Copyright 2021 四川澳沙科技有限公司
 * 
 * @ClassName: ExceptionMessage.java
 * @Description: 业务异常类实体
 * @version: v1.0.0
 * @author: hepan
 * @date: 2021年6月24日-下午2:00:10
 */
public class ExceptionMessage {
	private String logMessage; // 日志错误信息
	private String showMessage; // 提示错误信息
	private int code; // 错误码，0 为正常

	public ExceptionMessage() {

	}

	/**
	 * 异常实体
	 * 
	 * @param logMessage  日志错误信息
	 * @param showMessage 提示错误信息
	 * @param code        错误码，0 为正常
	 */
	public ExceptionMessage(String logMessage, String showMessage, int code) {
		this.logMessage = logMessage;
		this.showMessage = showMessage;
		this.code = code;
	}

	/**
	 * 异常实体
	 * 
	 * @param logMessage  日志错误信息
	 * @param showMessage 提示错误信息
	 * @param code        错误码，0 为正常
	 */
	public ExceptionMessage(String logMessage, String showMessage) {
		this.logMessage = logMessage;
		this.showMessage = showMessage;
	}

	public String getLogMessage() {
		return logMessage;
	}

	public void setLogMessage(String logMessage) {
		this.logMessage = logMessage;
	}

	public String getShowMessage() {
		return showMessage;
	}

	public void setShowMessage(String showMessage) {
		this.showMessage = showMessage;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "ExceptionMessage [logMessage=" + logMessage + ", showMessage=" + showMessage + ", code=" + code + "]";
	}

}
